package com.awesome.network.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * Author: JFangZ
 * Email:janezhang1901@163.com
 * Date: 2021/4/27 18:14
 * Description:Used to set connect timeout for the specified request.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface ConnectTimeout {
    long timeout();

    TimeUnit timeUnit() default TimeUnit.SECONDS;
}